use file_sys::{
    block_dev::BlockDevice, 
    fs::FileSystem, 
    file_disk::FileDisk,
    BLOCK_SIZE,
};

fn get_device() -> Box<dyn BlockDevice> {
    Box::new(FileDisk::new("./disk/image").unwrap())
}

#[test]
fn test_fs_create() {
    let total_block_size = 8 * 1024 * 1024 / BLOCK_SIZE;
    FileSystem::create(total_block_size as u32, 2, get_device());
}
